

def return_using_procnew
  a_proc = Proc.new { return "Hi" }
  a_proc.call
  "Last line in the method"
end

#=>  “ Hi”

def return_using_lambda
  a_proc = lambda { return "Hi" }
  a_proc.call
  "Last line in the method"
end

#p return_using_procnew
p Proc.new{}
p '----'
p lambda{}
#=> "Last line in the method"